package com.lzyyj.gmis.base.service;

import java.io.Serializable;
import java.util.Map;

public interface IUserService<T, PK extends Serializable> {

	public final static String USER_SERVICE = "UserService";
	
	public String getLoginNameFieldName();
	
	public String getCurrentUserKey();
	
	public T login(String loginName, String password) throws Exception;

	public void logout(T user);
	
	public T getCurrentUser();

	public Map<String, Object> getThreadLocalMap(boolean b);

}
